home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 019a / e14.zip / E.DOC < prev    next >
Text File  |  1991-12-15  |  13KB  |  289 lines

  1. Thanks for downloading E!
  2.  
  3. E is a small, fast, general purpose editor.  It is copyrighted but you are
  4. hereby granted a limited license to use it free of charge.  While I am not
  5. aware of any bugs, I make no guarantees about its trustworthiness, so use it at
  6. your own risk.  Feel free to share it with others.  I only ask that you
  7. distribute these files together and unchanged and charge nothing for them (a
  8. distribution fee of up to $15 is allowed).
  9.  
  10. Some of e's features:
  11.  
  12.   - block and line move and delete functions, to/from buffer or another file
  13.  
  14.   - find, replace, replace all
  15.  
  16.   - set tabs, L and R margins, word wrap, autoindent
  17.  
  18.   - set and jump to labels or line number
  19.  
  20.   - shell to DOS, one-key execution of batch files
  21.  
  22.   - DESQview-compatible (run in a window with direct write disabled)
  23.  
  24.   - assembly language (TASM) for speed and compactness, source included
  25.  
  26.   - configuration program included to change defaults
  27.  
  28.  
  29. Lines are limited to 80 chars in length.  Longer lines in input files are
  30. truncated.  Those entered at the terminal are wrapped at 80 characters.  Tab
  31. characters encountered as a file is being read in are converted to spaces using
  32. the current tab setting.
  33.  
  34. Here is a summary of commands.  In the descriptions of these commands, '*'
  35. indicates that the function performs differently if the shift key is down.
  36. When in E, press F1 for help.  Whenever you are asked to enter a response to a
  37. prompt (as for a string to find or file name), just pressing Enter will usually
  38. cancel the command.
  39.  
  40.  
  41. Cursor movement:
  42.  
  43. left                      left arrow, Ctrl S
  44. right                     right arrow, Ctrl D
  45. word left                 Ctrl left arrow, Ctrl A
  46. word right                Ctrl right arrow, Ctrl F
  47. tab right                 Tab
  48. tab left                  Shift Tab
  49. to left margin            Home
  50. to end of line            End
  51. up                        up arrow, Ctrl E
  52. down                      down arrow, Ctrl X
  53. page up                   PgUp, Ctrl R
  54. page down                 PgDn, Ctrl C
  55. start of file             Ctrl PgUp
  56. end of file               Ctrl PgDn
  57. assign label (0-9)        Alt L
  58. go to label (0-9)         Alt G
  59. jump to line #            Alt J
  60.  
  61.  
  62. Insert and Delete:
  63.  
  64. delete char left          backspace
  65. delete char at cursor     Del
  66.     Pressing delete when the cursor is to the right of all text on a line joins
  67.     that line with the line below.
  68. delete word left          Ctrl [
  69. delete word right         Ctrl ]
  70. delete to end of line     Ctrl \
  71. delete line               Ctrl -, Ctrl Y
  72. undelete line             Ctrl ^
  73.     'Delete to end of line' and 'delete line' save the deleted text in a
  74.     buffer.  Use Ctrl ^ to retrieve one line at a time.  The same buffer is
  75.     used for block deletes, providing an easy way to move a few lines:  delete
  76.     the lines individually using Ctrl -, move the cursor to the new location,
  77.     then insert all the lines at once using Alt I (see below).  If the cursor
  78.     is at the left margin when a line is undeleted using Ctrl ^, the line is
  79.     inserted above the current line.  If it is to the right of the left margin
  80.     it overwrites what is currently on the line from that column on.  This is
  81.     useful for moving comments from the end of one line to another.
  82. toggle insert mode        Ins
  83.     Toggle between Insert (the default, signified by a line cursor) and
  84.     Overwrite (identified by a block cursor) modes of text entry.
  85. insert raw character      Alt = *
  86.     Insert the character which follows, which might otherwise be interpreted as
  87.     a command (for example a form feed character).  If shifted, 80h is added to
  88.     the character.  For example, to enter line drawing characters, press Shift
  89.     Alt =, then a character in the set {@, A-J}.  Warning: don't start a line
  90.     with a character whose ASCII value is > 80h (E uses that bit as a flag when
  91.     moving buffered lines during a file swap).
  92.  
  93.  
  94. Insert and Delete Block and File:
  95.  
  96. mark start of block       Alt B
  97. copy block to buffer      Alt C *
  98. delete block to buffer    Alt D *
  99. insert block from buffer  Alt I *
  100. empty block buffer        Alt E *
  101. unmark                    Alt U
  102.     Alt C copies all marked lines (between the line where you pressed Alt B for
  103.     'mark start of block' and the present cursor location) to a buffer, or if
  104.     the shift key is also down, to a file.  Alt D deletes the original lines
  105.     after first copying them to the buffer or file.  Alt I inserts the contents
  106.     of the file or buffer above the present line.  Press Alt I several times to
  107.     insert multiple copies.  To move text, use Alt D then Alt I.  To move text
  108.     between two files, delete or copy to the block buffer, press Alt O to
  109.     change files, then Alt I to insert.  You can get lines into the buffer
  110.     using either Alt C or Alt D or the line delete commands Ctrl - or Ctrl \
  111.     and out using either Alt I or Ctrl ^.
  112.  
  113.     All block commands marked with a '*' will read from or write to a file
  114.     instead of an internal buffer if the shift key is down (you will be
  115.     prompted for a file name).  Here's a useful trick:  to print part of a
  116.     file, first mark the start of the block with Alt B, then use Shift Alt C
  117.     and give 'prn' as the file name.
  118.  
  119.     The block commands work on whole lines only.  To move part of a line, use
  120.     the Enter key to break it into pieces first.
  121.  
  122.  
  123. Formatting:
  124.  
  125. set left margin           Ctrl Home
  126. set right margin          Ctrl End
  127.     These toggle the margin settings between the current cursor location and the
  128.     screen edge.
  129. set tab width             Alt T
  130.     E will expand all tabs found in files it edits.  If a file read in doesn't
  131.     look right, change the tab width, then read the file in again by pressing
  132.     Alt O and reentering the file name.
  133. wrap paragraph            Alt W
  134.     Readjust line lengths by moving words at the end up or down a line as
  135.     necessary to best fill out the lines within the boundaries set by the left
  136.     and right margins.  Wrapping will start at the beginning of the line the
  137.     cursor is on and stop at the first line on which text does not begin at the
  138.     left margin.  E automatically wraps text as you enter it, moving the first
  139.     word that overflows the right margin down to the beginning of a new line.
  140. toggle autoindent mode    Ctrl @
  141.     Autoindent mode causes each new line after a carriage return to be indented
  142.     as much as the line above it.  The default is on, the way you generally will
  143.     want it for programming.  Turn it off for most word processing except
  144.     writing outlines.
  145. Toggle text/programming mode defaults   Alt Z
  146.     Use this to change quickly between programming and text mode configurations.
  147.     E starts in programming mode with margins at 0, 79 and autoindent on.  ALT
  148.     Z toggles between this and margins at 8, 72 with autoindent mode off for
  149.     processing text.  You may alter E to start up in text mode each time or
  150.     change the default margins using the accompanying configuration program.
  151.  
  152.  
  153. Find and Replace:
  154.  
  155. find                      Alt F *
  156. replace                   Alt R *
  157. find/replace all          Alt A *
  158.     After pressing Alt F and entering a string to find, E will put the cursor
  159.     at the start of the first string in the text which matches the search
  160.     string, ignoring case of letters.  If you then press Alt R, you will be
  161.     prompted for another string to replace the one just found.  Replace must
  162.     always be used immediately after Find.  If the shift key is also pressed,
  163.     the last string entered is used.  Use Find/Replace All only if you're sure
  164.     you want to change all occurrances of a string.  Otherwise use shifted Find
  165.     to locate each subsequent occurrence of a string, then shifted Replace only
  166.     for those instances you want to replace.
  167.  
  168.  
  169. Files and DOS:
  170.  
  171. load other file           Alt O *
  172.     Alt O will save the current file if changed and prompt for the name of a
  173.     new file to edit.  Shift Alt O will return you to the last file edited at
  174.     the point you left off.  Repeatedly pressing Shift Alt O toggles back and
  175.     forth between two files.
  176. save and continue         Alt S
  177. save and exit             Alt X, Esc
  178.     Any time an attempt is made to save a file and the disk is full, E will let
  179.     you know.  If you can't just change disks and try again (perhaps your hard
  180.     disk is full), press Alt K, then F2 to shell to DOS, then delete some other
  181.     files to make room.  Then type 'exit' to return to E, type Alt K again to
  182.     mark the file to be saved and try the original command again.
  183. toggle kill save on exit  Alt K
  184.     Use Alt K before Alt X or Alt O to discard any changes made before exiting.
  185.     Pressing Alt K again reinstructs E to save the file at exit.
  186. shell to DOS              F2 *
  187.     Press F2 to exit E temporarily to run some other file or system command
  188.     (for example, DIR).  Type 'exit' after you are done to return to E.
  189. execute EFn.BAT           F3-F6 *
  190.     If it exists, the batch file EFn.BAT will be executed when Fn is pressed,
  191.     for n = 3 to 6.  The file being edited will be saved first if changed.  You
  192.     can use this feature to run a .BAT file to compile, link and/or debug the
  193.     file you are editing, print the file, perhaps passing it to a print
  194.     formatter such as NROFF first, even play a game if you are tired of
  195.     working, all without losing your place!
  196.  
  197.     For example, here is the .BAT file I use to invoke the Turbo assembler,
  198.     linker and debugger for e.  It is named 'EF3.BAT', and runs whenever I push
  199.     F3.  '%1' is automatically replaced by the name of the file being edited
  200.     without the extension.
  201.  
  202.         tasm -zi %1
  203.         IF ERRORLEVEL 1 GOTO fix
  204.         tlink /v %1
  205.         IF ERRORLEVEL 1 GOTO fix
  206.         tdstrip -s %1
  207.         exe2bin %1 %1.com
  208.         td %1.com
  209.         :fix
  210.         exit
  211.  
  212.     If you use this feature to invoke an assembler or compiler, I recommend you
  213.     also install a program like BUFFIT to allow you to retrieve error messages
  214.     that have scrolled off the top of the screen.  Alternatively, you could
  215.     redirect the output of the compiler to your printer or add 'pause' at the
  216.     end of the batch file.
  217.  
  218.     Here's a .BAT file to print the file currently being edited.  If you call
  219.     it EF4.BAT, it will cause the file to be printed when you press F4:
  220.  
  221.         copy %1 prn
  222.  
  223.     If the shift key is pressed along with F2 or F3 - F6, E contracts down to
  224.     under 7K, writing the file being edited to disk if changed, then reading it
  225.     back in afterward.  Anything in the block or other buffers is lost.  Use
  226.     this if the application which you are leaving E to run won't fit otherwise.
  227.  
  228.  
  229. I'd like to thank some folks who have helped with this project.  Jim DeVries
  230. wrote ECONFIG.EXE, with which you may change many of E's default settings.
  231. Mike Robertson sent me the original code to allow E to run under DESQview and
  232. contributed many helpful suggestions as I was developing and debugging E.
  233. Many other users have contributed helpful suggestions for improvements and bug
  234. reports -- thanks to all of you.  Thanks also to Barry Nance who said nice
  235. things about E in his column in the September '91 BYTE.
  236.  
  237. I'd appreciate hearing about any bugs, and welcome any other comments.  To
  238. contact me, leave mail to dnye on BIX or write me at the address below.  Please
  239. enclose a stamped, self-addressed envelope if you write and want a reply.
  240.  
  241.  
  242.                                                       David Nye MD
  243.                                                       4209 W Lowe's Creek Rd.
  244.                                                       Eau Claire, WI  54701
  245.                                                       1 Feb, 1991
  246.                                                       BIX name: dnye
  247.  
  248. Version history
  249.  
  250. 0.2, 1 Jan 1990
  251.     First widely released.
  252.  
  253. 0.3, 20 Jan 1990
  254.     Added F2 to execute a DOS command, Alt Z as a quick way to set up word
  255.     processing defaults.  Clearer help screen.  ESC no longer exits (I kept
  256.     hitting it by mistake).  Use Alt X instead.  Some minor bug fixes.  Added
  257.     more color monitor support (default colors, cursor fix).
  258.  
  259. 0.4, 28 Jan 1990
  260.     More bug fixes (last line in file no longer has CR LF appended, can no
  261.     longer start e up without a file name on the command line, then escape out
  262.     of entering a file name at the prompt).  There is now a byte settable with
  263.     debug to start e up in text mode instead of programming mode.  Can enter
  264.     chars above 80h with Shift Alt =.  Wrapping a line ending in one of the
  265.     punctuation characters in the set {.;:!?} leaves two spaces after the
  266.     character.
  267.  
  268. 0.5, 15 Feb 1990
  269.     More minor bug fixes.
  270.  
  271. 0.6, 28 Feb 1990
  272.     Added ability to run under DESQview and F3-F6 functions (to execute BATs).
  273.  
  274. 1.0, 15 Mar 1990
  275.     Bug fixes.  Added shifted F2-F6 functions.
  276.  
  277. 1.1, 7 July 1990
  278.     More bug fixes.  Now works under older (v. 2.?) DOS, recognises disk full.
  279.  
  280. 1.2, 12 Oct 1990
  281.     Minor bug fixes.
  282.  
  283. 1.3, 1 Feb 1991
  284.     Added Shift Alt O command to return to last file edited.  The lower of two
  285.     lines joined by pressing delete at the end of the upper line now has leading
  286.     spaces deleted.
  287.  
  288. 1.4, 13 Dec 1991
  289.     Bug fixes, find is now case-insensitive.